home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / comm / tcp / smbfs.lha / source / smakefile < prev    next >
Makefile  |  2001-03-04  |  4KB  |  145 lines

  1. #
  2. # $Id: smakefile,v 1.44 2001/03/03 14:20:00 olsen Exp $
  3. #
  4. # :ts=8
  5. #
  6. # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
  7. #
  8. # Copyright (C) 2000-2001 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; if not, write to the Free Software
  22. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. #
  24.  
  25. .c.o:
  26.     sc $(CFLAGS) $<
  27.     @ctags >tagfiles/$* $<
  28.  
  29. .asm.o:
  30.     asm $(ASMFLAGS) $<
  31.  
  32. ###############################################################################
  33.  
  34. PROJECT = smbfs
  35.  
  36. ###############################################################################
  37.  
  38. #############################################################################
  39. #
  40. # Program version
  41. #
  42. #############################################################################
  43.  
  44. VERSION = 1
  45.  
  46. ###############################################################################
  47.  
  48. OPTIMIZE =    optimize opttime optinline optinlocal optschedule
  49. CPU =        any
  50. #CPU =        060
  51. DEBUG =        line
  52. #DEBUG =    symbolflush noopt define=DEBUG
  53.  
  54. ###############################################################################
  55.  
  56. ASMFLAGS =    -d
  57. CFLAGS =    idlen=64 comnest streq strmerge nostkchk \
  58.         $(OPTIMIZE) cpu=$(CPU) debug=$(DEBUG) \
  59.         params=register idir=netinclude idir=include \
  60.         gst=system_headers.gst
  61. LFLAGS =    smallcode smalldata noicons batch
  62.  
  63. ###############################################################################
  64.  
  65. C_FILES =    main.c proc.c smb_abstraction.c crypt.c
  66.  
  67. ASM_FILES =
  68.  
  69. HEADERS =    smb_abstraction.h \
  70.         include/smb/smb.h include/smb/smbno.h include/smb/smb_fs.h \
  71.         include/smb/smb_fs_sb.h include/smb/smb_mount.h
  72.  
  73. OTHER =        smakefile $(PROJECT)_rev.h $(PROJECT)_rev.i $(PROJECT)_rev.rev \
  74.         system_headers.c system_headers.h \
  75.         assert.c assert.h \
  76.         smbfs.doc history.doc
  77.  
  78. SOURCE =    $(C_FILES) $(ASM_FILES) $(HEADERS) $(OTHER)
  79.  
  80. OBJS =        main.o proc.o smb_abstraction.o sock.o crypt.o
  81.  
  82. ###############################################################################
  83.  
  84. LIBS = lib:sc.lib lib:amiga.lib lib:debug.lib
  85.  
  86. ###############################################################################
  87.  
  88. all: tagfiles system_headers.gst $(PROJECT)
  89.  
  90. tagfiles:
  91.     makedir $@
  92.  
  93. $(PROJECT): $(OBJS) system_headers.gst Assert.o
  94.     slink $(OBJS) to $@.debug lib $(LIBS) Assert.o $(LFLAGS) \
  95.         map $(PROJECT).map,fhx fwidth 32 pwidth 32 swidth 32
  96.     slink $@.debug to $@ noicons nodebug
  97.     @type tagfiles/\#? >t:tags
  98.     @copy t:tags ""
  99.     @delete >nil: t:tags
  100.  
  101. system_headers.gst: system_headers.h system_headers.c
  102.     gst unload $@
  103.     sc $(CFLAGS) nodebug noobjname nogst makegst=$@ system_headers.c
  104.  
  105. ###############################################################################
  106.  
  107. clean:
  108.     -delete \#?.o $(PROJECT)(%|.debug)
  109.  
  110. realclean: clean
  111.     -delete system_headers.gst tags tagfiles \#?.map all
  112.  
  113. ###############################################################################
  114.  
  115. mkid:
  116.     mkid -v \#?.(c|h|a|asm|i) include/smb/\#?.h \
  117.         netinclude/\#?/\#?.h \
  118.         netinclude/\#?.h
  119.  
  120. update:
  121.     mkid -v -u
  122.  
  123. version:
  124.     bumprev $(VERSION) $(PROJECT)
  125.  
  126. ###############################################################################
  127.  
  128. cvs-tag:
  129.     cvs -q tag V$(VERSION)_`type $(PROJECT)_rev.rev`
  130.  
  131. cvs-update:
  132.     cvs update
  133.  
  134. ###############################################################################
  135.  
  136. xref:
  137.     cxref -Iinclude -Inetinclude -xref -no-comments \#?.c
  138.     cxref -Iinclude -Inetinclude -xref -no-comments -index -html \#?.c
  139.  
  140. xref-update:
  141.     cxref -Iinclude -Inetinclude -xref -no-comments -index -html \#?.c
  142.  
  143. xref-clean:
  144.     -delete \#?.html cxref.\#?
  145.